package com.hyzx.qbasic.admin.domain.repository;

import com.github.pagehelper.PageInfo;
import com.hyzx.qbasic.admin.model.po.ProcessCategoryPO;

import java.util.List;

/**
 * Created by 黄江华 on 2018/11/21
 */

public interface IProcessCategoryRepository {

    List<ProcessCategoryPO> getAllProcessCategoryList();

    PageInfo<ProcessCategoryPO> getPagedProcessCategoryList(int pageNum, int pageSize, String processCategoryName);

    boolean addProcessCategory(ProcessCategoryPO category);

    boolean deleteProcessCategory(List<Integer> processCategoryIdList);

    ProcessCategoryPO getProcessCategoryById(int processCategoryId);

    ProcessCategoryPO getProcessCategoryByKey(String processCategoryKey);

    boolean editProcessCategory(ProcessCategoryPO category);
}
